package art.shared.entities;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class UserShared implements IsSerializable {

	private long id;
	private String nickname;
	private String email;
	private String name;

	public enum Gender {
		MALE, FEMALE;
		@Override
		public String toString() {
			switch (this) {
			case MALE:
				return "Male";
			case FEMALE:
				return "Female";
			default:
				return "";
			}
		}
	}

	private Gender gender;
	private Date dateOfBirth;
	private List<ArtShared> arts;
	private UserLevelShared level;

	public UserShared() {

	}

	public UserShared(String nickname, String email) {
		super();
		this.nickname = nickname;
		this.email = email;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public Date getDateOfBirth() {
		return dateOfBirth;
	}

	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}

	public List<ArtShared> getArts() {
		return arts;
	}

	public void setArts(List<ArtShared> arts) {
		this.arts = arts;
	}

	public UserLevelShared getLevel() {
		return level;
	}

	public void setLevel(UserLevelShared level) {
		this.level = level;
	}

}
